package com.qdu.service.impl;

import com.qdu.entity.Orderinfo;
import com.qdu.mapper.OrderinfoMapper;
import com.qdu.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderinfoMapper orderinfoMapper;

    @Override
    public void deleteByPrimaryKey(String oid) {
        orderinfoMapper.deleteByPrimaryKey(oid);
    }

    @Override
    public void insert(Orderinfo record) {
        orderinfoMapper.insert(record);
    }

    @Override
    public void insertSelective(Orderinfo record) {
        orderinfoMapper.insertSelective(record);
    }

    @Override
    public Orderinfo selectByPrimaryKey(String oid) {
        return orderinfoMapper.selectByPrimaryKey(oid);
    }

    @Override
    public List<Orderinfo> selectByUid(String uid) {
        return orderinfoMapper.selectByUid(uid);
    }

    @Override
    public List<Orderinfo> selectByHid(String hid) {
        return orderinfoMapper.selectByHid(hid);
    }

    @Override
    public void updateByPrimaryKeySelective(Orderinfo record) {
        orderinfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public void updateByPrimaryKey(Orderinfo record) {
        orderinfoMapper.updateByPrimaryKey(record);
    }
}
